-- GENERATED SPELL FOR [Amani Elder Lynx] --


function spell0_24530(pUnit, Event) --@Feral Swipe,n/a--
pUnit:FullCastSpellOnTarget(43357,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24530', 8254, 1)
end

function spell1_24530(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(34970,pUnit)
pUnit:RegisterEvent('Sorts_24530', 523, 1)
end

function spell2_24530(pUnit, Event) --@Pounce,n/a--
pUnit:FullCastSpellOnTarget(43356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24530', 3270, 1)
end

function Sorts_24530(pUnit, Event)
local choix_sorts_24530 = math.random(0, 2)
if choix_sorts_24530 == 0 then
pUnit:RegisterEvent('spell0_24530', 1, 1)
end
if choix_sorts_24530 == 1 then
pUnit:RegisterEvent('spell1_24530', 1, 1)
end
if choix_sorts_24530 == 2 then
pUnit:RegisterEvent('spell2_24530', 1, 1)
end
end

function mob24530_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24530', math.random(1500, 3000), 1)
end

function mob24530_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24530_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24530_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24530, 1, 'mob24530_Action')
RegisterUnitEvent(24530, 2, 'mob24530_Leave')
RegisterUnitEvent(24530, 3, 'mob24530_Kill')
RegisterUnitEvent(24530, 4, 'mob24530_Die')
